﻿using System.Xml.Serialization;

namespace eProject.Model
{
    /// <summary>
    /// This class represents task data
    /// </summary>
    [XmlRoot("Task")]
    public class Task
    {
        #region Constructor
        
        public Task(string name, string description, long duration)
        {            
            Name = name;
            Description = description;
            Duration = duration;            
        }        

        public Task()
        {
            
        }

        #endregion

        #region Properties

        [XmlAttribute]
        public string Name { get; set;}

        [XmlAttribute]
        public string Description{ get; set;}

        [XmlAttribute]
        public long Duration{ get; set;}

        #endregion     
    }
}
